package com.example.cart_system.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import java.time.LocalDateTime;
import java.util.List;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Order {
    private String oid;
    private String goods;
    private List<GoodsInfo> goodsList;
    private String usrid;
    private Double osumprice;
    private LocalDateTime otime;
    //数据封装构造函数
    Order (List<GoodsInfo> goodsList) {
        this.goodsList = goodsList;
    }
}
